/**
  testall.d - the startup of all unit test

 written in the D programming language 1.0

Authors:	Wei Li (oldrev@gmail.com)
Copyright:	Copyright (C) 2007 by Wei Li.
License:	BSD
*/

module test.testall;

import dotmars.test.core;
import dotmars.test.runner;



// test case or Suites:
import test.base.ts_base;
import test.io.ts_io;
import test.runtime.ts_runtime;


/*
class MainTestSuite : TestSuite!(MainTestSuite)
{
	this()
	{
		register(new BaseTestSuite, new IOTestSuite, new RuntimeTestSuite);
	}
}*/


int main() {
	auto mainSuite = suite(new BaseTestSuite, new IOTestSuite, new RuntimeTestSuite);
	auto result = ConsoleRunner.run(mainSuite);
	return result.hasPassed ? 0 : result.failureCount;
}
